package com.common.orm.sqlparameters;

import java.sql.PreparedStatement;
import java.sql.SQLException;

/**
 * @author Dmitry Savchenko
 */
public class ParameterInteger extends SqlParameter{
    private int value;

    public ParameterInteger(String name, int value) {
        super(name);
        this.value = value;
    }
    
    @Override
    public void process(int index, PreparedStatement prepStatement) throws SQLException {
        prepStatement.setInt(index, value);
    }
    
}
